﻿using System;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.StatisticsManagement
{
    /// <summary>
    /// 销售员业绩表
    /// </summary>
    [Table(Name = "erp_statistics_sales_man_amount")]
    public class StatisticsSalesManAmount
    {

        /// <summary>
        /// 编码
        /// </summary>
        [Column(Name = "id", IsPrimary = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Column(Name = "name", StringLength = 50)]
        public string Name { get; set; }

        /// <summary>
        /// 所属时间
        /// </summary>
        [Column(Name = "belong_time", StringLength = -89)]
        public DateTime BelongTime { get; set; }

        /// <summary>
        ///  添加时间
        /// </summary>
        [Column(Name = "add_time", CanUpdate = false, Position = -89)]
        public DateTime AddTime { get; set; }

        /// <summary>
        ///  管理员ID
        /// </summary>
        [Column(Name = "manager_id")]
        public Guid? ManagerId { get; set; }

        /// <summary>
        ///  管理员名称
        /// </summary>
        [Column(Name = "manager_name")]
        public string ManagerName { get; set; }
        
        /// <summary>
        /// 部门编码
        /// </summary>
        [Column(Name = "department_id")]
        public Guid? DepartmentId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Column(Name = "department_name")]
        public string DepartmentName { get; set; }

        /// <summary>
        /// 岗位编码
        /// </summary>
        [Column(Name = "position_id")]
        public Guid? PositionId { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        [Column(Name = "position_name")]
        public string PositionName { get; set; }

        /// <summary>
        /// 统计类型（1=日统计；2=月统计；3=年统计；）
        /// </summary>
        [Column(Name = "type")]
        public int? Type { get; set; }

        /// <summary>
        /// 销售金额
        /// </summary>
        [Column(Name = "price")]
        public int? Price { get; set; }


    }
}
